home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / gold / menu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.1 KB  |  52 lines

  1. /*
  2.  * The original copyright owners of the accompanying source code files have
  3.  * agreed to place such code into the public domain.  Accordingly, anyone
  4.  * who receives or obtains a copy of such source code is freely entitled to
  5.  * reproduce, use and otherwise exploit such code (including the right to
  6.  * make derivative works), at his/her own risk and expense, without any
  7.  * obligation or liability to the original copyright owners.
  8.  *
  9.  * We would appreciate (but do not require) that the following message be
  10.  * included in any derivative works:
  11.  *
  12.  * "Portions of this program were developed by Peter Broadwell, Rob Myers
  13.  * and Robin Schaufler while working in Silicon Valley."
  14.  *
  15.  * The accompanying source code files and related documentation materials
  16.  * are distributed on an "AS IS" basis, without any warranties or
  17.  * guarantees of any kind.  All implied warranties, including the implied
  18.  * warranties of merchantability and of fitness for any particular purpose,
  19.  * are expressly disclaimed.
  20.  */
  21. typedef struct {
  22.     panel base;
  23.     int flags;
  24.     point2d nbuttons;    /* number of buttons across and up */
  25.     int curVal;        /* current button, counted row major from top */
  26.     inst *receiver;    /* object to receive button message upon pick */
  27.     int baseSelect;    /* base of selectors for button messages */
  28.             /* first button sends message baseSelect */
  29.             /* last button sends baseSelect+nbuttons.x*nbuttons.y */
  30.     Object highlight;
  31. } menu;
  32.  
  33. typedef struct {
  34.     panel base;
  35.     int flags;
  36.     point2d nbuttons;    /* number of buttons across and up */
  37.     int curVal;        /* current button, counted row major from top */
  38.     int *baseChoice;    /* base of value choice array */
  39.     int *value;        /* address of client value, to be read and stuffed */
  40.     Object highlight;
  41. } choice;
  42.  
  43. typedef struct {
  44.     panel base;
  45.     int flags;
  46.     point2d nbuttons;    /* number of buttons across and up */
  47.     int curVal;        /* current button, counted row major from top */
  48.     Coord *baseChoice;    /* base of value choice array */
  49.     Coord *value;    /* address of client value, to be read and stuffed */
  50.     Object highlight;
  51. } choicef;
  52.